<!--/*--><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <link id="mastercss" rel="stylesheet" href="images/style.css" type="text/css" media="screen"/>
    <script src="include/js/common.js" type="text/javascript"></script>
</head>
<body><!--*/-->
<!--{&header,${title!},内容管理&nbsp;&raquo;&nbsp;模型管理&nbsp;&raquo;&nbsp;管理模型}-->
<!--{!#system,common}-->
<div id="newslisttab">
    <ul>
        <li style="float:right"><a href="site.html#{cms/addmodel}#">添加模型</a></li>
        <li style="float:right" class="active"><a href="site.html#{cms/model}#">管理模型</a></li>
    </ul>
</div>
<form method="post" action="site.html#{/system/resource/update}#" enctype="multipart/form-data">
    <table cellspacing='0' cellpadding='0' width='100%' class='listtable'>
        <tr>
            <th>ID</th>
            <th>名称</th>
            <th>描述</th>
            <th>数据表</th>
            <th width="50">单位</th>
            <th width="240">管理操作</th>
        </tr>
        <!--{loop $data $v}-->
        <tr>
            <td>${v[modelid]}</td>
            <td>${v[name]}</td>
            <td>${v[description]}</td>
            <td>${tpre}c_${v[tablename]}</td>
            <td>${v[itemunit]}</td>
            <td><a href="#{/cms/field/${v[modelid]}}#">字段管理</a> |
                <a href="#{/cms/editmodel/${v[modelid]}}#">修改</a> |
                <a href="#{/cms/actionmodel/1/${v[modelid]}}#">{=($v['disabled']==1 ? '<span class="sred">启用</span>' : '禁用')}</a> |
                删除 | 导出为模板 </td>   
        </tr>
        <!--{/loop}-->
        
    </table>
</form>
<!--{&footer}-->
<!--/*-->
</body>
</html><!--*/-->